﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace XsqTech.SmartOA.Domain.Table
{
    /// <summary>
    /// 设计表单
    /// </summary>
    public class Form:Audit
    {
        /// <summary>
        /// 主键id
        /// </summary>
        [Key]
        public Guid Id { get; set; } = Guid.NewGuid();
        /// <summary>
        /// 表单名称
        /// </summary>
        [Required]
        [StringLength(50)]
        public string FormName { get; set; }
        /// <summary>
        /// 表单数据
        /// </summary>
        [Required]
        [MaxLength]
        public string FormJson { get; set; }

        /// <summary>
        /// 表单描述
        /// </summary>
        [Required]
        [StringLength(50)]
        public string Description { get; set; }
    }
}
